<?php
//Class
include("class_user.php");
include("class_joke.php");
include("class_info.php");

session_start();
//instancier l'utilisateur
	if (isset($_SESSION['active']) and $_SESSION['active'] == 1)
	{
		$user = &$_SESSION['user'];
	}
	else
	{
		$user = new User();
		$_SESSION['user'] = $user;
		$_SESSION['active'] = 1;
		$user->check_cookie();
	
}

//system
include("system_request.php");
include("system_ajax.php");
?>